#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<iostream>
using namespace std;
int main()
{
	int n = 1, k;
	double sum = 0;
	scanf("%d", &k);
	while(sum <= k)
	{
		sum += 1.0 / n;
		n++;
	}
	cout << n - 1;
	return 0;
}